//
//  QMUIViewController.m
//  QMUIMultipleDelegates
//
//  Created by ldb on 10/28/2020.
//  Copyright (c) 2020 ldb. All rights reserved.
//

#import "QMUIViewController.h"
#import "HLEView.h"
#import <QMUIMultipleDelegates/NSObject+QMUIMultipleDelegates.h>


@interface QMUIViewController () <HLEViewDelegate>

@property(nonatomic, strong) HLEView *bgView;
@end

@implementation QMUIViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    self.bgView = [[HLEView alloc] init];
    self.bgView.frame = CGRectMake(0, 0, 300, 300);
    self.bgView.center = self.view.center;
    [self.view addSubview:self.bgView];
    self.bgView.backgroundColor = UIColor.redColor;
    self.bgView.qmui_multipleDelegatesEnabled = YES;
    self.bgView.delegate = self;
}

- (void)testDelegate
{
    NSLog(@"1");
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)dealloc
{
    NSLog(@"11");
}


@end
